package com.chixing.entity;

import java.time.LocalDateTime;

public class Application {
    private int applicationId;
    private int candidateId;
    private int jobId;
    private LocalDateTime appliedAt;
    private String applicationStatus;
    private String coverLetter;
    private LocalDateTime updatedAt;

    public Application(){}
    public Application(int applicationId, int candidateId, int jobId, LocalDateTime appliedAt, String applicationStatus, String coverLetter, LocalDateTime updatedAt) {
        this.applicationId = applicationId;
        this.candidateId = candidateId;
        this.jobId = jobId;
        this.appliedAt = appliedAt;
        this.applicationStatus = applicationStatus;
        this.coverLetter = coverLetter;
        this.updatedAt = updatedAt;
    }

    public int getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(int applicationId) {
        this.applicationId = applicationId;
    }

    public int getCandidateId() {
        return candidateId;
    }

    public void setCandidateId(int candidateId) {
        this.candidateId = candidateId;
    }

    public int getJobId() {
        return jobId;
    }

    public void setJobId(int jobId) {
        this.jobId = jobId;
    }

    public LocalDateTime getAppliedAt() {
        return appliedAt;
    }

    public void setAppliedAt(LocalDateTime appliedAt) {
        this.appliedAt = appliedAt;
    }

    public String getApplicationStatus() {
        return applicationStatus;
    }

    public void setApplicationStatus(String applicationStatus) {
        this.applicationStatus = applicationStatus;
    }

    public String getCoverLetter() {
        return coverLetter;
    }

    public void setCoverLetter(String coverLetter) {
        this.coverLetter = coverLetter;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return "Application{" +
                "applicationId=" + applicationId +
                ", candidateId=" + candidateId +
                ", jobId=" + jobId +
                ", appliedAt=" + appliedAt +
                ", applicationStatus='" + applicationStatus + '\'' +
                ", coverLetter='" + coverLetter + '\'' +
                ", updatedAt=" + updatedAt +
                '}';
    }
}
